package com.zx.service.Impl;

import com.zx.entity.Category;
import com.zx.repository.CategoryRepository;
import com.zx.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryRepository repository;

    @Override
    public Category findCategoryInfoByCategoryName(String categoryName) {
        return repository.findByCategoryName(categoryName);
    }
}
